using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Xml;
using EnvDTE;
using SPVisualDev.VSAddin.UserControls;

namespace SPVisualDev.VSAddin.Dialogs
{
    public partial class DialogSharePointExplorer : Form
    {
        public DialogSharePointExplorer()
        {
            InitializeComponent();

            //this.FormClosing += new FormClosingEventHandler(DialogSharePointExplorer_FormClosing);
        }

        public SpecialProject CurrentProject
        {
            get { return ucspExplorer1.CurrentProject; }
            set { ucspExplorer1.CurrentProject = value; }
        }

        public string Message
        {
            get { return lblMessage.Text; }
            set { lblMessage.Text = value; }
        }

        public string SelectedUrl
        {
            get { return ucspExplorer1.SelectedUrl; }
        }

        public UCSPExplorer SPExplorer
        {
            get { return ucspExplorer1; }
        }

        public string SelectedContentTypeId
        {
            get { return ucspExplorer1.SelectedContentTypeId; }
        }
        public XmlNode SelectedContentType
        {
            get { return ucspExplorer1.SelectedContentType; }
        }

        /*
        public bool ShowSiteCollections
        {
            get { return ucspExplorer1.ShowSiteCollections; }
            set { ucspExplorer1.ShowSiteCollections = value; }
        }

        public bool ShowWebs
        {
            get { return ucspExplorer1.ShowWebs; }
            set { ucspExplorer1.ShowWebs = value; }
        }

        public bool ShowLists
        {
            get { return ucspExplorer1.ShowLists; }
            set { ucspExplorer1.ShowLists = value; }
        }

        public bool ShowListFolders
        {
            get { return ucspExplorer1.ShowListFolders; }
            set { ucspExplorer1.ShowListFolders = value; }
        }

        public bool ShowListItems
        {
            get { return ucspExplorer1.ShowListItems; }
            set { ucspExplorer1.ShowListItems = value; }
        }

        public bool ShowContentTypes
        {
            get { return ucspExplorer1.ShowContentTypes; }
            set { ucspExplorer1.ShowContentTypes = value; }
        }

        public bool ShowContentTypeGroups
        {
            get { return ucspExplorer1.ShowContentTypeGroups; }
            set { ucspExplorer1.ShowContentTypeGroups = value; }
        }
        */

        private void Form1_Load(object sender, EventArgs e)
        {
            ucspExplorer1.InitExplorer(this.CurrentProject.Project.DTE as EnvDTE80.DTE2, this.CurrentProject, 0);
        }

    }
}